/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package data.xml_persistence.model;

/**
 *
 * @author ded_end
 */
public class Airline {

    public String id;
    public String name;
    public String country;
    public double rating;
    public AirplaneNameList airplanelist;

    public Airline() {
    }

    public Airline(String id, String name, String country, double rating, AirplaneNameList airplanelist) {
        this.id = id;
        this.name = name;
        this.country = country;
        this.rating = rating;
        this.airplanelist = airplanelist;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getRating() {
        return rating;
    }

    public void setRating(double rating) {
        this.rating = rating;
    }

    public AirplaneNameList getAirplanes() {
        return airplanelist;
    }

    public void setAirplanes(AirplaneNameList airplanelist) {
        this.airplanelist = airplanelist;
    }

    @Override
    public String toString() {
        return "Airline{" + "id=" + id + ", name=" + name + ", country=" + country + ", rating=" + rating + ", airplanelist=" + airplanelist + '}';
    }
}
